﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200077D RID: 1917
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetNpcTakenRewardCsReq : IMessage<GetNpcTakenRewardCsReq>, IMessage, IEquatable<GetNpcTakenRewardCsReq>, IDeepCloneable<GetNpcTakenRewardCsReq>, IBufferMessage
	{
		// Token: 0x17001883 RID: 6275
		// (get) Token: 0x06005630 RID: 22064 RVA: 0x000E939C File Offset: 0x000E759C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetNpcTakenRewardCsReq> Parser
		{
			get
			{
				return GetNpcTakenRewardCsReq._parser;
			}
		}

		// Token: 0x17001884 RID: 6276
		// (get) Token: 0x06005631 RID: 22065 RVA: 0x000E93A3 File Offset: 0x000E75A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetNpcTakenRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001885 RID: 6277
		// (get) Token: 0x06005632 RID: 22066 RVA: 0x000E93B5 File Offset: 0x000E75B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetNpcTakenRewardCsReq.Descriptor;
			}
		}

		// Token: 0x06005633 RID: 22067 RVA: 0x000E93BC File Offset: 0x000E75BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardCsReq()
		{
		}

		// Token: 0x06005634 RID: 22068 RVA: 0x000E93C4 File Offset: 0x000E75C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardCsReq(GetNpcTakenRewardCsReq other) : this()
		{
			this.npcId_ = other.npcId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005635 RID: 22069 RVA: 0x000E93E9 File Offset: 0x000E75E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardCsReq Clone()
		{
			return new GetNpcTakenRewardCsReq(this);
		}

		// Token: 0x17001886 RID: 6278
		// (get) Token: 0x06005636 RID: 22070 RVA: 0x000E93F1 File Offset: 0x000E75F1
		// (set) Token: 0x06005637 RID: 22071 RVA: 0x000E93F9 File Offset: 0x000E75F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x06005638 RID: 22072 RVA: 0x000E9402 File Offset: 0x000E7602
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetNpcTakenRewardCsReq);
		}

		// Token: 0x06005639 RID: 22073 RVA: 0x000E9410 File Offset: 0x000E7610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetNpcTakenRewardCsReq other)
		{
			return other != null && (other == this || (this.NpcId == other.NpcId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600563A RID: 22074 RVA: 0x000E9440 File Offset: 0x000E7640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600563B RID: 22075 RVA: 0x000E947F File Offset: 0x000E767F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600563C RID: 22076 RVA: 0x000E9487 File Offset: 0x000E7687
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600563D RID: 22077 RVA: 0x000E9490 File Offset: 0x000E7690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600563E RID: 22078 RVA: 0x000E94C4 File Offset: 0x000E76C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600563F RID: 22079 RVA: 0x000E9502 File Offset: 0x000E7702
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetNpcTakenRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005640 RID: 22080 RVA: 0x000E9533 File Offset: 0x000E7733
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005641 RID: 22081 RVA: 0x000E953C File Offset: 0x000E773C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.NpcId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040021B8 RID: 8632
		private static readonly MessageParser<GetNpcTakenRewardCsReq> _parser = new MessageParser<GetNpcTakenRewardCsReq>(() => new GetNpcTakenRewardCsReq());

		// Token: 0x040021B9 RID: 8633
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021BA RID: 8634
		public const int NpcIdFieldNumber = 13;

		// Token: 0x040021BB RID: 8635
		private uint npcId_;
	}
}
